package com.seo.mapper.sysUser;

import java.util.Map;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SysUserMapper {

	Map<String, Object> getSysUserByLoginName(String loginName);

	List<Map<String, Object>> getSysUserByRoleId(Integer roleId);
	
	Map<String, Object> getSysUserById(Integer id);
	
	Map<String, Object> getSysUserByInviteCode(String inviteCode);

	List<Map<String, Object>> getSysUserList(Map<String, Object> params);
	
	Integer getSysUserCnt(Map<String, Object> params);
	
	int addSysUser(Map<String, Object> params);
	
	int deleteSysUser(Integer id);
	
	int updateSysUser(Map<String, Object> params);
	
	int updateSysUserState(@Param("id") Integer id, @Param("state") String state);
	
	int updateSysUserPwd(Map<String, Object> param);
}
